package com.maezia.tdr.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maezia.tdr.dao.mapper.DictMapper;
import com.maezia.tdr.dao.repository.DictRepository;
import com.maezia.tdr.domain.po.Dict;
import com.maezia.tdr.service.DictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements DictService {

    @Autowired
    private DictRepository dictRepository;

    @Override
    public Dict getByKey(String key) {
        return dictRepository.getByKey(key);
    }
}
